﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="SubMedia.aspx.cs" Inherits="SubMedia" %>

<%@ Import Namespace="AppCommon" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>
        <asp:Literal runat="server" ID="litTitlePage" EnableViewState="False" />
        |
        <%= Constants.TITLE_MAIN_PAGE%></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="row">
        <!-- Noi dung chi tiet cua tour -->
        <ol class="breadcrumb">
            <li>
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/">Trang chủ</asp:HyperLink></li>
            <li>
                <asp:HyperLink ID="linkMedia" runat="server"></asp:HyperLink></li>
            <li class="active">
                <asp:Literal ID="linkSubMedia" runat="server"></asp:Literal></li>
        </ol>
        <div class="col-lg-8 col-md-8 col-xs-12">
            <div class="content-info-tour">
                <!-- Content -->
                <ul class="nav nav-tabs" id="vyc-detail">
                    <li class="active"><a href="#vyc-intro" data-toggle="tab"># Nổi bật</a></li>                    
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="vyc-intro">
                        <div class="row">
                            <div class="col-sm-12">
                                <asp:GridView CssClass="table table-condensed table-responsive" ID="gv" DataKeyNames="Id"
                                    runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="5"
                                    AllowPaging="true" PagerSettings-Position="TopAndBottom" OnPageIndexChanging="gv_PageIndexChanging"
                                    PagerSettings-PageButtonCount="5" AllowSorting="true" EmptyDataText="Chưa cập nhật dữ liệu"
                                    AutoGenerateColumns="False">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <i class="fa fa-file-text-o"></i> <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "~/tintuc/" + Eval("UniqueId") %>'>
                                                <%# Eval("Tieude")%>
                                                </asp:HyperLink>
                                                <p><%# Eval("TomTat")%></p>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <p><asp:HyperLink CssClass="g-plusone" data-size="tall" runat="server" NavigateUrl='<%# "~/tintuc/" + Eval("UniqueId") %>'></asp:HyperLink></p>
                                                <p><asp:HyperLink ID="HyperLink4" CssClass="fb-like" data-size="tall" runat="server"
                                                data-href='<%# "~/tintuc/" + Eval("UniqueId") %>' 
                                                data-layout="box_count" data-action="like" 
                                                data-show-faces="true" data-share="true"
                                                NavigateUrl='<%# "~/tintuc/" + Eval("UniqueId") %>'></asp:HyperLink></p>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <AlternatingRowStyle BackColor="White" />
                                    <FooterStyle BackColor="#d02027" Font-Bold="True" ForeColor="Black" />
                                    <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black" />
                                    <PagerStyle CssClass="phan-trang" BackColor="#ffffff" ForeColor="#BB0009" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" VerticalAlign="Middle" Wrap="True" />
                                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                    <PagerSettings Mode="NumericFirstLast"></PagerSettings>
                                </asp:GridView>
                            </div>
                        </div>
                    </div>                    
                </div>
                <!-- end content -->
            </div>
        </div>
        <div class="col-lg-4 col-md-4 col-xs-12">
            <fx:SearchAdvance ID="SearchAdvance1" runat="server" />
            <fx:TinTucRight ID="TinTucRight1" runat="server" />
        </div>
    </div>
    <script type="text/javascript">
        (function () {
            var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
            po.src = 'https://apis.google.com/js/platform.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
        })();
    </script>
</asp:Content>
